function textArea(element, length, event){
	
	if(event.keyCode == 8 || event.keyCode == 46){
		return true;
	}
	
	if(element.value.length > length){
		element.value = element.value.substring(0, length - 1);
	}

	if(element.value.length >= length){
		return false;
	}
}

function textAreaUp(element, length, idSize){
	atualizarsizeElement(idSize, element, length, idSize);
}

function atualizarsizeElement(idSize, element, length, idSize){
	elementSize = document.getElementById(idSize);
	elementSize.innerHTML = (length - element.value.length);
}